package script.node;

import cn.hutool.core.util.HexUtil;
import com.gee.spring.cloud.aerospace.simulate.core.domain.TelemetryNodeDto;
import com.gee.spring.cloud.aerospace.simulate.core.satellite.telemetry.TmFrameGenerator;

import java.util.List;
import java.util.Map;

/**
 * @author gepengjun
 * @since 2024/7/4 17:20
 */
public class FrameHeadErrorControl {

    static byte[] eval(TmFrameGenerator tmFrameGenerator, TelemetryNodeDto currentNode,
                       List<TelemetryNodeDto> frameNodeList, Map<String, String> scriptParamMap){
        String hex = "143C";
        if (tmFrameGenerator.delayed()){
            hex = "E521";
        }
        return HexUtil.decodeHex(hex);
    }
}
